package com.psnoted.backend.dto;

import com.fasterxml.jackson.annotation.JsonInclude;

/**
 * 获取密码数据响应DTO
 *
 * @author PSNoted Team
 * @version 1.0.0
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
public class GetPasswordsResponse {

    private EncryptedStorageData storageData;
    private String lastSyncTime;
    private boolean hasData;

    // 构造函数
    public GetPasswordsResponse() {}

    public GetPasswordsResponse(EncryptedStorageData storageData, String lastSyncTime, boolean hasData) {
        this.storageData = storageData;
        this.lastSyncTime = lastSyncTime;
        this.hasData = hasData;
    }

    // Getter和Setter方法
    public EncryptedStorageData getStorageData() {
        return storageData;
    }

    public void setStorageData(EncryptedStorageData storageData) {
        this.storageData = storageData;
    }

    public String getLastSyncTime() {
        return lastSyncTime;
    }

    public void setLastSyncTime(String lastSyncTime) {
        this.lastSyncTime = lastSyncTime;
    }

    public boolean isHasData() {
        return hasData;
    }

    public void setHasData(boolean hasData) {
        this.hasData = hasData;
    }

    @Override
    public String toString() {
        return "GetPasswordsResponse{" +
                "storageData=" + storageData +
                ", lastSyncTime='" + lastSyncTime + '\'' +
                ", hasData=" + hasData +
                '}';
    }
}